/* Hero section styles */

/* Global background wrapper */
.hero-wrapper {
  width: 100%;
  position: relative;
  background: radial-gradient(circle at 20% 20%, rgba(255, 215, 0, 0.05), transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(255, 215, 0, 0.07), transparent 60%);
}

[data-theme="light"] .hero-wrapper {
  background: radial-gradient(circle at 20% 20%, rgba(212, 175, 55, 0.08), transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(212, 175, 55, 0.1), transparent 60%);
}

/* Hero section */
.hero {
  width: 100%;
  padding: 80px 20px 60px;
  /* balanced spacing */
  display: flex;
  align-items: flex-start;
  /* content upar rahe */
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Container */
.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  width: 100%;
  gap: 50px;
}

/* Left content */
.hero-content {
  flex: 1;
  color: var(--text);
  animation: fadeInUp 1s ease forwards;
  will-change: transform, opacity;
}

.hero-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.2);
  min-height: 65px;
  /* Stabilization properties */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
}

.hero-title span {
  color: var(--accent);
  text-shadow: 0 0 18px rgba(255, 215, 0, 0.6);
  display: inline-block;
  vertical-align: middle;
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
}

.hero-subtitle {
  margin-top: 20px;
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 500px;
  line-height: 1.7;
}

.hero-btn {
  display: inline-block;
  margin-top: 30px;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  color: #000;
  font-weight: 700;
  padding: 12px 26px;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
  transition: all 0.3s ease;
}

.hero-btn:hover {
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.7);
  transform: translateY(-4px);
}

/* Right Image */
.hero-image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mailkaro-logo {
  width: 80%;
  max-width: 380px;
  object-fit: contain;
  animation: logoFloat 5s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.35));
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 1.2s ease, transform 1.2s ease;
}

/* Animations */
@keyframes fadeInUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes logoFloat {

  0%,
  100% {
    transform: scale(0.95);
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.35));
  }

  50% {
    transform: scale(1.05);
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.55));
  }
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    padding: 50px 15px 40px;
    align-items: center;
  }

  .hero-container {
    flex-direction: column-reverse;
    text-align: center;
    gap: 40px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    margin: 0 auto;
  }

  .hero-btn {
    margin: 25px auto 0;
  }

  .mailkaro-logo {
    width: 220px;
  }
}

/* Light mode fixes */
[data-theme="light"] .hero-title {
  color: #000;
}

[data-theme="light"] .hero-title span {
  color: #B8941F;
}

[data-theme="light"] .hero-subtitle {
  color: #333 !important;
}

[data-theme="light"] .hero-btn {
  color: #000;
}